package org.wejob;


public class Main {
    //public Main myThis=new Main();
    //0：初始化 1：观察者 2：执行者 3：Leader 4：关闭
    private int state=1;
    private JobLeader leader;
    public static void main(String[] args) throws Exception {
        Main job=new Main();
        job.start(new Configration());
    }
    public  void init(JobLeader leader){
        int i=leader.state;
    }
     public void start(Configration configration) throws Exception {

     }

     public JobLeader getLeader() throws Exception {
        return JobLeader.getInstance();
     }

}